package org.learnredis.university;

public class YearOffFoundationComparator implements UniversityComparator{
    @Override
    public int compare(University s1, University s2) {
        Integer s1Score = s1.getYearOfFoundation();
        Integer s2Score = s2.getYearOfFoundation();
        return s2Score.compareTo(s1Score);
    }
}
